/*
 * File:   Exception.h
 * Author: Elevator
 *
 * Created on July 29, 2013, 10:23 PM
 */

#ifndef COMMON_EXCEPTION_H
#define COMMON_EXCEPTION_H

#include <string>
#include <exception>

class Exception : public std::exception {
public:

	Exception( std::string message ) throw ( ) :
	_message( message ) {
	}

	Exception( const Exception& orig ) throw ( ) :
	_message( orig._message ) {
	}

	~Exception( ) throw ( ) {
	}

	const char* what( ) const throw ( ) {
		return _message.c_str( );
	}

	const std::string GetMessage( ) const throw ( ) {
		return _message;
	}
private:
	std::string _message;
};


#endif	/* EXCEPTION_H */

